package com.fallsvc.onlinemusic.controller.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @auther falls_vc
 * description:
 * @date 2025/6/3  11:14
 */

@AllArgsConstructor
public enum MusicFormatEnums {
    MP3(1);

    @Getter @Setter
    private Integer code;

    public static MusicFormatEnums forName(String s) {
        for (MusicFormatEnums e : MusicFormatEnums.values() ) {
            if(s.equals(e.name())) {
                return e;
            }
        }
        return null;
    }

}
